-- career_strengthen
-- created by huanghr
-- 称号强化

return {
    apply = function(prop)
        -- 根据prop可以知道强化项加强多少,-- 需要返回当前是强化的哪一个称号
        local artifactId = ArtifactM.getCarryArtifact();
        local careerId = ArtifactM.query(artifactId, "career_id");
        return {["career_id"] = careerId, ["strengthen_level"] = prop[3]};
    end,

    desc = function(prop, artifactId)
        local row = PropM.getRow(prop[1]);
        local str = row.desc;
        if artifactId then
            local careerId = ArtifactM.query(artifactId, "career_id");

            local careerName = CareerM.getCareerInfo(careerId, "name");
            cclog(careerName)
            str = string.gsub(str, "{career}", careerName);
        end
        return str;
    end,

    record = function(target, prop, path)
        return false;
    end 
};